package com.vogue.supplymall.common.domain.dto;

import com.vogue.supplymall.common.domain.validate.NotEmpty;

import java.io.Serializable;

/**
 * 查询时接收前端post信息的类
 *
 * @Aouthor: zhangliang
 * @Date: Create in 2017-12-05
 */
public class SearchPrepayInfo implements Serializable {
    /**
     * 登录用户的ID
     */
    private Long loginId;
    /**
     * syscodeid
     */
    private Long syscodeid;
    /**
     * 机构id
     */
    private Long organid = 0L;
    /**
     * 卖家注册号id
     */
    private Long sellsyscodeid;
    /**
     * 卖家机构id
     */
    private Long sellorganid = 0L;
    /**
     * session id
     */
    private String sessionId;
    /**
     * 检索内容
     */
    private String keyword;

    public Long getSellsyscodeid() {
        return sellsyscodeid;
    }

    public void setSellsyscodeid(Long sellsyscodeid) {
        this.sellsyscodeid = sellsyscodeid;
    }

    public Long getSellorganid() {
        return sellorganid;
    }

    public void setSellorganid(Long sellorganid) {
        this.sellorganid = sellorganid;
    }

    /**
     * limit开始位置
     */
    @NotEmpty(name = "start")
    private Integer start = 0;
    /**
     * limit结束位置
     */
    @NotEmpty(name = "length")
    private Integer length = 10;

    private boolean ifBuyer = true;

    /**
     * 是否是管理员在操作
     */
    private boolean isAdmin = false;

    public Long getLoginId() {
        return loginId;
    }

    public void setLoginId(Long loginId) {
        this.loginId = loginId;
    }

    public Long getSyscodeid() {
        return syscodeid;
    }

    public void setSyscodeid(Long syscodeid) {
        this.syscodeid = syscodeid;
    }

    public Long getOrganid() {
        return organid;
    }

    public void setOrganid(Long organid) {
        this.organid = organid;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public Integer getStart() {
        return start;
    }

    public void setStart(Integer start) {
        this.start = start;
    }

    public Integer getLength() {
        return length;
    }

    public void setLength(Integer length) {
        this.length = length;
    }

    public boolean isIfBuyer() {
        return ifBuyer;
    }

    public void setIfBuyer(boolean ifBuyer) {
        this.ifBuyer = ifBuyer;
    }

    public boolean isAdmin() {
        return isAdmin;
    }

    public void setAdmin(boolean admin) {
        isAdmin = admin;
    }
}
